.user-chat-navbar {
  .navbar-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
  }
}

.user-chat-container {
  position: relative;
  overflow: scroll;
  background: linear-gradient(45deg, var(--bg-third), var(--bg-first));

  &::-webkit-scrollbar {
    display: none;
  }

  .chat-message-wrap {
    padding: 0 8px;
    box-sizing: border-box;
    overflow: scroll;
    background: linear-gradient(45deg, var(--bg-third), var(--bg-first));

    &::-webkit-scrollbar {
      display: none;
    }

    .pull-to-refresh {
      &::-webkit-scrollbar {
        display: none;
      }
    }

    .own-wrap,
    .other-wrap {
      display: flex;
      align-items: flex-start;
      justify-content: flex-end;
      margin-top: 16px;

      .head-img {
        margin-left: 12px;
        border-radius: 4px;
        width: 40px;
        height: 40px;
      }

      .text-box {
        position: relative;
        padding: 8px 12px;
        border-radius: 4px;
        background-color: var(--mini-second);
        max-width: 60vw;
        word-wrap: break-word;

        &::after {
          position: absolute;
          top: 10px;
          right: -14px;
          width: 0;
          height: 0;
          content: '';
          border: 9px solid;
          border-color: transparent transparent transparent var(--mini-second);
        }
      }

      .img-box,
      .video-box {
        border-radius: 4px;
        border: 1px solid var(--split-line);
        max-width: 60vw;
        height: 160px;
      }

      .video-box {
        width: 160px;
      }
    }

    .other-wrap {
      justify-content: flex-start;

      .text-box {
        background-color: var(--bg-second);

        &::after {
          left: -14px;
          border-color: transparent var(--bg-second) transparent transparent;
        }
      }

      .head-img {
        margin-left: 0;
        margin-right: 8px;
      }
    }

    .chat-message-date {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 12px;

      .date-content {
        padding: 0 6px;
        border-radius: 2px;
        background-color: var(--bg-fourth);
        font-size: 12px;
        color: var(--font-second);
      }
    }

    &:last-child {
      padding-bottom: 16px;
    }

    .message-wrap {
      overflow: hidden;
    }
  }

  .chat-input-wrap {
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    background-color: var(--bg-second);

    .text-input {
      padding: 8px;
      border-radius: 4px;
      background-color: var(--font-second);
    }

    .add-icon {
      margin-left: 8px;
      width: 36px;
      height: 36px;
    }

    .send-btn {
      margin-left: 8px;
      padding: 0;
      width: 48px;
      height: 36px;
      line-height: 36px;
    }
  }

  .send-other-wrap {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    border-top: 1px solid var(--split-line2);
    box-sizing: border-box;
    background-color: var(--bg-second);

    .send-other-icon {
      width: 28px;
      height: 28px;
    }

    .picture-wrap,
    .video-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-right: 24px;
      border-radius: 8px;
      width: 56px;
      height: 56px;
      background-color: var(--bg-first);

      .nut-uploader-input {
        height: 28px !important;
      }
    }

    .video-wrap {
      .send-other-icon {
        width: 36px;
        height: 36px;
      }
    }
  }
}